<?php
	include_once '../../../ketnoi.php';
	$MaKyHan = $_GET['makyhan'];
	$sql ="";
	if($MaKyHan != 0){
		$HinhThucThangNam = $_GET['hinhthuc'];
		if($HinhThucThangNam == 'Thang')
		{
			$sql = "SELECT * FROM laisuatgui where MaLoaiKyHan = $MaKyHan AND HangThang = 1";
		}
		else 
		{
			$sql = "SELECT * FROM laisuatgui where MaLoaiKyHan = $MaKyHan AND HangNam = 1";
		}
		$dslaisuat = mysql_query($sql);
		if(count($dslaisuat)<1)
			echo "";
		else 
		{
			$dong = mysql_fetch_array($dslaisuat);
			echo $dong['PhanTramLaiSuatGui'];
		}
	}
	else
		echo "";
?>